"use strict";
Ajax('/api/list', (data) => {
    // console.log(data)
    render(data.data);
});
function render(data) {
    const box = document.querySelector('.box');
    box.innerHTML = data.map(item => {
        return `
        <dl>
            <dt><img src='${item.img}' alt='' /></dt>
            <dd>
                <h3>${item.title}</h3>
                <p>${item.desc}</p>
            </dd>
        </dl>
        `;
    }).join('');
}
